home *** CD-ROM | disk | FTP | other *** search
- I am porting a Unix sockets application to Winsock. The messages exchanged
- among the various programs constituting the application are C structures.
- read() is used by the Unix processes to retrieve data from the socket buffers;
- it reads a certain amount of data from the buffer as specified in one of its
- parameters. One only needs to give it the size of the structure and it will
- retrieve the whole thing. read() is not supported with Winsock; you must
- user recv(). recv() read the next message in the queue. Apparently it
- decides that a message ends when it runs into a '\0' char. Thus, everything
- following the first string in the structure is left behind in the buffer.
- Obviously, this is creating some serious problems for me.
-
- Can anyone tell me if this is in fact the way that recv() works, and if there
- is an elegant solution provided by Winsock?
-
- --
- Gary Hall | Voice (604) 291-3208 | INTERNET: hall@cs.sfu.ca
- Centre for Systems Science | Fax (604) 291-4424 |
- Simon Fraser University |
- Burnaby, B.C. V5A 1S6 |
- From news@bigblue.oit.unc.edu Thu Mar 24 21:23:37 1994
- Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
- id AA25057; Thu, 24 Mar 1994 18:12:28 -0500
- Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
- id AA13974; Thu, 24 Mar 1994 17:51:10 -0500
- Received: from GATEWAY by bigblue with netnews
- for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
- To: winsock@sunsite.unc.edu
- Date: Thu, 24 Mar 1994 21:23:37 GMT
- From: Whippet@psu.edu (Michael A. Grassi)
- Message-Id: <Whippet.13.2D9204D9@psu.edu>
- Organization: Penn State University
- Sender: ses
- Subject: Winsock/Packet Driver Question
-
- I am running Winsock 1.0 rev B beta #2 over a packet driver for the Intel
- Ethernet Express and Winpkt. I also use a few WATTCP apps for dos like tn3270
- and ftp. The thing is I have to disable Winsock to run these apps, and I
- don't really like to shut all my Winsock apps down everytime I need to use the
- WATTCP stuff. Is there a way I can run both at the same time? I tried
- loading 2 packet drivers at different vectors, and that caused all sorts od
- probs in Windows. Does anybody have a suggestion? E-mail me at
- Whippet@psu.edu. TIA...
-
- --Michael
- Whippet@psu.edu
-
-